<?php
	header("Content-Type:text/html; charset=utf-8");
	function login()
	{
		$IP = '127.0.0.1:3306';
		$yonghuming = 'root';
		$password = '11111111';
		$con = mysqli_connect($IP,$yonghuming,$password);//链接数据库
		if (!$con)
		{
			die('MYSQL链接失败: ' . mysqli_error());
		}
		else
		{
			mysqli_select_db($con,'biyesheji');
			mysqli_query($con,"set names 'utf8'");
			return $con;
		}
	}
?>